package com.maxd.modules.selfshop.prize.service;

import com.maxd.error.Result;
import com.maxd.modules.selfshop.prize.entity.SelfPrizeUser;

public interface SelfPrizeUserService {
    //列表
    Result findAll(Integer page, Integer size, String nickName);

    //用户端列表
    Result userList(Integer page, Integer size, Long userId);

    //查询
    Result findOne(Long id);

    //删除
    Result delete(Long id);

    //添加
    Result saveBody(SelfPrizeUser entity);

    //修改
    Result updateBody(SelfPrizeUser entity);

    //检测用户抽奖剩余次数
    Result checkNumber(Long prizeRuleId, Long userId);


}
